import time
from Apr20.pcUtils import *
#url = 'https://www.jiemian.com/tags/2066/1.html'
url = 'https://toutiao.china.com/s_lenovo/lxtbtj/13004463/20230420/44890563.html'
s = Scrawler()
#js-article-left > div.article_content > p:nth-child(16) > img
picUrl = s.getImgUrl(url,selector="div.article_content  p  img")
# print(picUrl)
for index,url in enumerate(picUrl):
    s.getImgs(url,imgName="panda-"+str(index)+".jpg")
    print("okk")
    time.sleep(1)